package user.main;

import java.io.BufferedReader;
import java.io.InputStreamReader;

import filewriting.PathDisplayWriter;

import outputviewer.ObserveOutput;

/**
 * Given a file of observations, prints the tracked items.
 * 
 * @author Trevor Terris
 *
 */
public class RunObservationTracking 
{
	public static void main (String[] args)
	{
		try
		{
        	System.out.println("What directory should the observations be read from?");
        	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        	String dirName = br.readLine();
			
			//displays the output
        	ObserveOutput outputDisplay = new ObserveOutput();
			outputDisplay.CreateApplet(dirName + "/" + PathDisplayWriter.TRACKED_DATA_FILENAME);
			outputDisplay.start();
		}
		catch (Exception e)
		{
			System.out.println("IO exception.");
		}
	}
}
